//package org.ddd.pattern.event.spring.rowmapper;
//
//import org.ddd.pattern.event.domain.data.DomainEventTracker;
//import org.springframework.jdbc.core.RowMapper;
//
//import java.sql.ResultSet;
//import java.sql.SQLException;
//
//public class PublishedEventTrackerRowMapper implements RowMapper<DomainEventTracker> {
//    public static final PublishedEventTrackerRowMapper RESULT_SET_EXTRACTOR = new PublishedEventTrackerRowMapper();
//
//    @Override
//    public DomainEventTracker mapRow(ResultSet resultSet, int i) throws SQLException {
//        DomainEventTracker eventTracker = new DomainEventTracker();
//        eventTracker.setDomainType(resultSet.getString(1));
//        eventTracker.setLatestStoredId(resultSet.getLong(2));
//        return eventTracker;
//    }
//}
//
//
